Closed sergiogp1 closed 7 months ago
Is this table "ABC Staging Order Item" in the same app or another PTE that this depends on? This looks like a dependency issue where the other table cannot be found and thus the type of Rec is not resolved
Yes, it's in the same app. That code has been working for at least 2 years.
I found the reason of the error. I will open a new issue and close this one.
1. Describe the bug My environment in SaaS can't upgrade to v23.0 because it's throwing this compilation error:
Per-tenant extension 'XYZ' version 1.0.0.25 by 'ABC' failed to compile. Failure while emitting method. Object:'Codeunit "ABC Create Item Jnl. Lines"' Method:'SetLine(var Record "ABC Staging Order Item" temporary)' (Unexpected value 'NoConversion' of type 'Microsoft.Dynamics.Nav.CodeAnalysis.ConversionKind') Unexpected value 'NoConversion' of type 'Microsoft.Dynamics.Nav.CodeAnalysis.ConversionKind'
2. To Reproduce Unable to reproduce in my local environment with v23.0 in app.json. The code is like this:
3. Expected behavior I expect that the environment can upgrade.
4. Actual behavior Environment can't upgrade
5. Versions:
Final checklist
Please remember to do the following:
The error is very generic. How can I solve it?