function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Christopher Bortz 16Christopher Bortz 16 

2nd Generation Packaging version build fails when it has a report

So I'm trying to create a second generation package that contains a report and that is all it contains (with it's report folder definition of course). When I run the version:create command then I get an error back in the form of:

<ReportFolder>/<ReportName>: filterlanguage: Invalid value specified: 1.

Where <ReportFolder> is the report's folder and <ReportName> is the report's name. I've tried this with several kinds of reports and with Translation Workbench on and off in the DevHub org as well as the default scratch org. This just doesn't seem to work. Has anyone else had success in building a 2nd gen package (Unlocked) with any kind of a report and NOT gotten this maddening error message?
SandhyaSandhya (Salesforce Developers) 
Hi,

Check if the language set on the report available in the target org.Refer below links that may help you.

https://salesforce.stackexchange.com/questions/12060/i-get-this-error-when-deploying-reports-why
 
https://success.salesforce.com/answers?id=90630000000i4AqAAI
 
Best Regards,
Sandhya
Christopher Bortz 16Christopher Bortz 16
Sandhya, That was one of the first things I checked and yes it was en_US which is the language set for the filters in the report. Also, I tried including a translations metadata xml file with the report and report folder metadata xml file and not only did I get the previous errors but also one that that said en_US was not available for deployment in this organization (I don't know what that means since English is active in Translation Workbench and I even assigned myself as translator for that language with no joy. Thoughts? *Christopher Bortz*