Tip: Extension doesn't compile after changing action parameters definitions


In Integration Studio, when changing the input or output parameters names or types of an already coded method, or a BAPI imported through SAP wizard, the extension won't compile, issuing an error message like:

error CS0103: The name 'oldVariableName' does not exist in the class or namespace 'Extension Namespace'
error CS0246: The type or namespace name 'oldVariableName' could not be found (are you missing a using directive or an assembly reference?)


Integration Studio will always update the source code of an extension when changes have been made in the types or actions definitions. However, only the definition (headers) of the actions and types will be updated, hence, any block of code introduced by the user or even by Wizards, like the SAP Wizard, won't be touched by the update source code step, revealing lose references to old definitions that will generate compiler errors.


After changing a definition of a type or action, is up to the developer to update the code blocks that are affected. To do so, one need to execute the "Update Source Code" function and then "Edit Source" in Visual Studio .NET, so one can edit the affected code blocks. Use the "Find and Replace" funcionallity in Visual Studio to accelerate this step.

Best Regards

Miguel Simões João