A new Flexera Community experience is coming on November 18th, click here for more information.
Hi ,
while building a business adapter using the BA studio using vendor and contract nodes getting the below error.
"Data types ntext and ntext are incompatible in the equal to operator"
Attached the snapshot and BA studio is 2020R1 version.
Any suggestions what to verify.
Regards
‎Jul 30, 2020 04:16 AM
‎Jul 30, 2020 04:59 AM
Hi,
Thank you for the suggestion ,Yes using an on prem setup, and will change the log Detail level to Debug.
Thanks
‎Jul 30, 2020 05:12 AM
Hi @winvarma ,
What is your source for your BA import, is a xls file or sql table?
If it's a sql table may be you can change the column type in nvarchar.
The ntext data type is deprecated in favor of the nvarchar(max) data type. If you can change the data type in the table, that would be the best solution.
‎Jul 30, 2020 06:19 AM
Hi @adrian_ritz1 ,
The source is an xls file.
‎Jul 30, 2020 06:29 AM
Hi @winvarma ,
Try to change the column directly in xls, and put text and then try to import again, for me it looks like a conversion error.
‎Jul 30, 2020 06:40 AM
@winvarma - It is likely that the field you are using to match on in your spreadsheet (Contract Number) is being interpreted by the Microsoft Access Engine driver as a numeric field as the first few rows of data in the spreadsheet have a numeric value. In the FlexNet Manager schema this is a Text field.
Open up your source spreadsheet in Excel.
Highlight the entire Contract Number column. Right-click on the column and select Format Cells.
Select Text as the category.
Save your Excel spreadsheet and try your Business Adapter again.
‎Jul 30, 2020 07:26 AM
Thank you @kclausen that you explained this issue better then me.
I wanted to mention the following: When you import in SQL from a xls file, by default the Microsoft driver will check 1st 10 lines and try to identify the filed type, if for example the 1st 10 lines are numbers, the type will be float or some numerical type, and if the rest oft the file have character and then numbers, the character cell will imported as blank, I found this very annoying and take some time till I figured out, because I 1st import the xls file in a staging table, run some normalization and then run the BA import.
‎Jul 30, 2020 07:42 AM
You can usually get around this by actively casting/converting your ntext to another data type and apply your operator to this value.
‎Aug 06, 2020 10:18 AM
User | Count |
---|---|
8 | |
7 | |
3 | |
3 |