Automatically create rowid from import excel to SQL Server

More
4 years 3 weeks ago #22055 by nveger
Hi Mike,

here already the Table script and the file. I have truncated the file to 25 records, as it already crashes after record 1, and as this moment I don't want to sent over the entire excel-file with 11.000 records.

Please let me know how I can extract the mapping; if that is an ats-file then please see attached as well in a zip-file.

File Attachment:

File Name: scripttableSQL.txt
File Size:1 KB

File Attachment:

File Name: Afleveradres.xlsx
File Size:14 KB

File Attachment:

File Name: loadafleve...ssen.zip
File Size:2 KB


Regards,
Norman
Attachments:
The following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago - 4 months 2 weeks ago #22056 by Peter.Jonson
I am not getting any AV's on my own computer only this error

Error 11/10/2022 14:53:06 12 Writer: {Writer3}, DEMO.dbo.afleveradres Record/Line:0 Record Rejected: Field: Value '999' is too big for type TINYINT for field LOSTYD

Will try another computer.

can you post a screenshot of the about box of AETL, please
I want to make sure that we are using the same version

Peter Jonson
ETL Developer
Last edit: 4 months 2 weeks ago by admin.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #22057 by nveger
Hi Peter,

here a screenshot of the about (see attached).

Also I looked at the Writer-step and then on the transformation-tab, I see that the scripts tries to enter values all "?", which is not correct. When I take 5 records as example, I get the error in the Execution log saying "No value given for one or more required parameters".

I have made screenshots of this, maybe this helps in investigating? I have uploaded this as well.

File Attachment:

File Name: errorloadi...nal.docx
File Size:112 KB


Please let me know if I am doing something wrong or if this is something else...
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #22058 by Peter.Jonson
"Also I looked at the Writer-step and then on the transformation-tab, I see that the scripts tries to enter values all "?", which is not correct. When I take 5 records as example, I get the error in the Execution log saying "No value given for one or more required parameters"."

There is no need to use user-defined SQL in your case.

Please try changing tinyint fields to int

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #22059 by nveger
I did that already (999 is not a valid value because it only runs till 256). So I driopped the table, re-created it with the field LOSTYD as datatype int, but still no success...
The following user(s) said Thank You: Peter.Jonson

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #22060 by Peter.Jonson
The second computer works as expected

Can you try removing mapping for M3PRS file and let us know if it works or not

Peter Jonson
ETL Developer

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save