Precisely Managing Metadata Changes in KingswaySoft Components

31 August 2023
KingswaySoft Team

The components we developed at KingswaySoft generally discover metadata automatically whenever possible - That is, our software retrieves metadata information made available by the API itself in order to properly populate our ETL components. In most cases, the metadata in our components is generally accurate, provided the target system has a reliable metadata API. This includes services like Dataverse/Dynamics 365 CE, Salesforce, SharePoint, etc. Accurate metadata is vital for data integrity in ETL processes. However, there are occasional cases where some ETL metadata fine-tuning may be necessary due to unique situations. For instance, you might encounter cases where a text field contains more data than what is indicated by its metadata, potentially causing the source extraction to fail. In such instances, manual editing of the metadata will be required in order for the ETL process to work. In this blog post, we will show you how such changes can be made properly for your ETL components.

For reference purposes, a common error that you could receive is an error message as shown below:
The input value for 'description' field does not fit into the output buffer, please consider increasing the output column's Length property or changing its data type to one that can accommodate more data such as ntext (DT_NTEXT). This change can be done using the component's Advanced Editor window.
When you receive this error, you can follow the approaches below to have the issue fixed. Please note that we will be using our Dynamics 365 CRM/CE component as an example here. However, the logic applies to all our SSIS components.

Working with the Advanced Editor

When working with an SSIS source or destination component, metadata discovery generally occurs after the source object/entity has been selected for the component. At this stage, the metadata of the ETL component should be fully populated. You can confirm this by navigating to the columns page, where you'll find a list of all available fields, along with data type, length, scale, and precision information. These details are populated based on the metadata information retrieved from metadata service calls. Assuming you've saved the metadata by accepting all configurations using the OK button, your component should be ready for execution. If you encounter an error related to data overflow such as the above one, you'll need to manually fine-tune the metadata. The first option to try in such cases would be using the Advanced Editor window. To do this, right-click on the component and select the 'Show Advanced Editor...' menu item to open the Advanced Editor.

RightClickOnSource.png

Next, in the window that opens up, navigate to the "Input and Output Columns" page. Here, you'll find two folders under Primary Output: External Columns and Output Columns.

InputAndOutputProperties.png

Open both External Columns and Output Columns, then select the column you wish to modify. In the right-side panel, you can adjust the datatype or length as needed.

ExternalColumns.png

OutputColumns.png

Once you've made the changes, you may click the OK button and save them. Once done, run the ETL process again to ensure it's now functioning correctly.

Working with XML Source code

In certain cases, the Advanced Editor might not be visible in the SSIS options. In such situations, right-click on the package in the Solutions Explorer, and select View Code.

ViewCode.png

This will open the XML code in a separate window. Here, you can perform a search (CTRL+F) to locate the KingswaySoft Source and/or Destination components and the required column names.

XMLCode.png

Conclusion

By following the steps above, you can easily modify the metadata as needed, contrary to the initial discovery. Please note that these changes will be retained until you refresh the metadata within the component.

We hope that this has helped!

Archive

November 2024 3 October 2024 1 September 2024 1 August 2024 2 July 2024 1 June 2024 1 May 2024 1 April 2024 2 March 2024 2 February 2024 2 January 2024 2 December 2023 1 November 2023 1 October 2023 2 August 2023 1 July 2023 2 June 2023 1 May 2023 2 April 2023 1 March 2023 1 February 2023 1 January 2023 2 December 2022 1 November 2022 2 October 2022 2 September 2022 2 August 2022 2 July 2022 3 June 2022 2 May 2022 2 April 2022 3 March 2022 2 February 2022 1 January 2022 2 December 2021 1 October 2021 1 September 2021 2 August 2021 2 July 2021 2 June 2021 1 May 2021 1 April 2021 2 March 2021 2 February 2021 2 January 2021 2 December 2020 2 November 2020 4 October 2020 1 September 2020 3 August 2020 2 July 2020 1 June 2020 2 May 2020 1 April 2020 1 March 2020 1 February 2020 1 January 2020 1 December 2019 1 November 2019 1 October 2019 1 May 2019 1 February 2019 1 December 2018 2 November 2018 1 October 2018 4 September 2018 1 August 2018 1 July 2018 1 June 2018 3 April 2018 3 March 2018 3 February 2018 3 January 2018 2 December 2017 1 April 2017 1 March 2017 7 December 2016 1 November 2016 2 October 2016 1 September 2016 4 August 2016 1 June 2016 1 May 2016 3 April 2016 1 August 2015 1 April 2015 10 August 2014 1 July 2014 1 June 2014 2 May 2014 2 February 2014 1 January 2014 2 October 2013 1 September 2013 2 August 2013 2 June 2013 5 May 2013 2 March 2013 1 February 2013 1 January 2013 1 December 2012 2 November 2012 2 September 2012 2 July 2012 1 May 2012 3 April 2012 2 March 2012 2 January 2012 1

Tags