Closed Daniamstutz closed 7 months ago
I think we should look at this warning error. If there is no workaround and people have to use pragmas to resolve it, then we cannot force it to be an error. We should look at how this can be handled
We have discussed this internally and we are currently not planning to turn this into an error, so we will remove the part of the message mentioning a future change of severity. For cases such as the one you mentioned above, you can then use a pragma directive to suppress it. Note that the diagnostic remains valid since this type of conversion can cause issues and fixing it, when possible, remains the recommended approach.
The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 24.0.15509.0 and VS Code Extension Version 13.0.929061.
If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo
For more details on code branches and docker images please read: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/ https://freddysblog.com/2020/06/25/working-with-artifacts/
Description I create a new FlowField and link it via the Source Subtype, this is once Option and the other time Enum.
Therefore I get the following warning:
An implicit conversion is being performed from a value of type 'Enum "Sales Document Type"' to a value of type 'Option'. This conversion can lead to unexpected runtime issues. This warning will become an error in a future release.
How can I work around this?
Repo