cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Giardini
Level II

Unable to open Excel file from sharepoint using JSL JMP code.

Attempting to use the following JMP JSL code:

 

 

dt = Open("https://name_of_file.xlsx?download=1",
	Worksheets( My_Res ),
	Use for all sheets( 1 ),
	Concatenate Worksheets( 0 ),
	Create Concatenation Column( 0 ),
	Worksheet Settings(
		1,
		Has Column Headers( 1 ),
		Number of Rows in Headers( 1 ),
		Headers Start on Row( 1 ),
		Data Starts on Row( 2 ),
		Data Starts on Column( 1 ),
		Data Ends on Row( 0 ),
		Data Ends on Column( 0 ),
		Replicated Spanned Rows( 1 ),
		Replicated Spanned Headers( 0 ),
		Suppress Hidden Rows( 1 ),
		Suppress Hidden Columns( 1 ),
		Suppress Empty Columns( 1 ),
		Treat as Hierarchy( 1 ),
		Multiple Series Stack( 0 ),
		Import Cell Colors( 0 ),
		Limit Column Detect( 0 ),
		Column Separator String( "-" )
	)
);

generates an error:

Giardini_0-1704447719397.png

Anyone had a similar problem?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Giardini
Level II

Re: Unable to open Excel file from sharepoint using JSL JMP code.

Guy, I watched those sides before I wrote here...

The problem turned out to be related to the system settings, unrelated to the JSL JMP language, so I'm closing the thread.

View solution in original post

7 REPLIES 7
jthi
Super User

Re: Unable to open Excel file from sharepoint using JSL JMP code.

Anyone had a similar problem? - Yes, this is one fairly commonly asked question. Below are some earlier posts:

And here are some searches which might help you to find those (and others):

-Jarmo
Giardini
Level II

Re: Unable to open Excel file from sharepoint using JSL JMP code.

Guy, I watched those sides before I wrote here...

The problem turned out to be related to the system settings, unrelated to the JSL JMP language, so I'm closing the thread.

Steffen_Bugge
Level IV

Re: Unable to open Excel file from sharepoint using JSL JMP code.

I have had similar issues. @GI , what was the problem with the system settings?

TH2024
Level I

Re: Unable to open Excel file from sharepoint using JSL JMP code.

What was the system setting? I'm getting same error with JMP 17 that i was not getting with JMP 16.

Re: Unable to open Excel file from sharepoint using JSL JMP code.

I have the same issue, any advice in the system settings?

jthi
Super User

Re: Unable to open Excel file from sharepoint using JSL JMP code.

If none of the suggestion I did provide (or additional searches from community) didn't help, I suggest contacting JMP Support (and if you get a response/solution post back).

-Jarmo
Steffen_Bugge
Level IV

Re: Unable to open Excel file from sharepoint using JSL JMP code.

Thanks @jthi ! FYI: @IloinenHamsteri @TH2024 @Giardini 

 

Answer from JMP support:

 

"Due to changes in SharePoint and JMP, the direct web import from SharePoint is no longer possible in JMP.

The work around is to map a network drive to folder on SharePoint containing the Excel file you wish to import.  You can then import the Excel file either through Windows Explorer or via a JSL script.

You can see how to use the JMP Excel Import Wizard in this video:  https://protect.checkpoint.com/v2/___https://www.jmp.com/en_us/learning-library/topics/jmp-basics/im...

Here is a JMP Community post on how to import Excel using a JSL script:  https://protect.checkpoint.com/v2/___https://community.jmp.com/t5/Discussions/how-to-create-a-script...

We plan to add a SharePoint Connector in a future version of JMP."