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
Jorg_JankeJorg_Janke 

sfdx force:package:version:create -c fails with access issues

when creating a (managed) package version, the create fails with field access issues - DescribeFieldResult.isAccessible().
When running the tests in the packaging dev org, all tests run fine.
Even assigning a permission set in the onInstall() install handler succeeded, but did not make a difference.

1) I did not find any reference to field security issues when creating a release version - is this 'expected' behavior?

2) Is there a way to get the test logs after running: sfdx force:package:version:create -c 
I also were not able to get code coverage - the --verbose flag creates an error with the current sfdx version (sfdx-cli/7.89.2-d1d2614d02 darwin-x64 node-v14.15.4)

 
ShirishaShirisha (Salesforce Developers) 
Hi Jorg,

Greetings!

Unfortunately,we can not capture the logs as suggested here.

https://github.com/forcedotcom/cli/issues/614

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri