Subscribe Bookmark RSS Feed

Why do I get an error

edzard_van_sant

Community Trekker

Joined:

Jun 4, 2014

The following script was copied after doing a manual concatenation:

Add Properties to Table(

    {New Script(

        "Source",

        Data Table( "Data_W_Nov_15" ) << Concatenate(

            Data Table( "Data_E_Nov_15" ),

            Data Table( "Data_W_Jan_16" ),

            Data Table( "Data_E_Jan_16" ),

            Data Table( "Data_W_Feb_16" ),

            Data Table( "Data_E_Feb_16" ),

            Output Table( "Combined" ),

            Create source column

        )

    )}

)

When I try to run it as a script I get the following error message. Why this error when didn't even change a single character.

Name Unresolved: Add Properties to Table in access or evaluation of 'Add Properties to Table' , Add Properties to Table(

    {New Script(

        "Source",

        Data Table( "Data_W_Nov_15" ) << Concatenate(

            Data Table( "Data_E_Nov_15" ),

            Data Table( "Data_W_Jan_16" ),

            Data Table( "Data_E_Jan_16" ),

            Data Table( "Data_W_Feb_16" ),

            Data Table( "Data_E_Feb_16" ),

            Output Table( "Combined" ),

            Create source column

        )

    )}

) /*###*/

In the following script, error marked by /*###*/

Add Properties to Table(

    {New Script(

        "Source",

        Data Table( "Data_W_Nov_15" ) << Concatenate(

            Data Table( "Data_E_Nov_15" ),

            Data Table( "Data_W_Jan_16" ),

            Data Table( "Data_E_Jan_16" ),

            Data Table( "Data_W_Feb_16" ),

            Data Table( "Data_E_Feb_16" ),

            Output Table( "Combined" ),

            Create source column

        )

    )}

) /*###*/

1 REPLY
ms

Super User

Joined:

Jun 23, 2011

It looks like you have copied a table script. The actual concatenation script is the second argument of New Script( ).  If you choose to Edit the table script you'll see the code in the dialog. Select all and copy the script there to get a "ready to run" copy.


This part should work as intended:

Data Table( "Data_W_Nov_15" ) << Concatenate(

            Data Table( "Data_E_Nov_15" ),

            Data Table( "Data_W_Jan_16" ),

            Data Table( "Data_E_Jan_16" ),

            Data Table( "Data_W_Feb_16" ),

            Data Table( "Data_E_Feb_16" ),

            Output Table( "Combined" ),

            Create source column

        );