HomeForum
Welcome, Guest

Too many actual parameters
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Too many actual parameters

Too many actual parameters 10 months, 1 week ago #3221

  • Chris
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
  • Karma: 0
Hi

I have set up an initial test by using just the first part of the daily ETL run –

As you can see I just added a script object and copied in your code and added the <file_id> into the file name in the extract object.
However, when I run the package I get an error in the script “Too many actual parameters”

I cannot see what it is referring to or what I have done to cause this error?

Could you please assist as I am trying to get this up and running for testing this week.

var FileHandle: Integer;
FileName: string;
I: Integer;
Begin
FileName:='c:\1.txt';
if FileExists(FileName) then
begin
FileHandle:=FileOpen(FileName,fmOpenReadWrite);
FileRead(FileHandle,I,4);
I:=I+1;
FileSeek(FileHandle,0,0);
FileWrite(FileHandle,I,4);
FileClose(FileHandle);
end
else
begin
I:=1;
FileHandle:=FileCreate(FileName,fmOpenWrite);
FileWrite(FileHandle,I,4);
FileClose(FileHandle);
end;
SetVariable('<file_id>',inttoStr(I));
Result:=I;
end;

Regards,
Chris
Attachments:

Re: Too many actual parameters 10 months, 1 week ago #3222

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2182
  • Karma: 12
Please replace
FileHandle:=FileCreate(FileName,fmOpenWrite);
with
FileHandle:=FileCreate(FileName);

Peter
  • Page:
  • 1
Time to create page: 0.19 seconds

Testimonials

I am continually Amazed by the power and versatility of the ETL tool and the Support Team.

Thank You!

http://www.dbsoftlab.com/advanced-etl-processor/2475-de-duplication-of-addresses.html

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top