Shortcut 'Get item from Split Text' fails

I have created a shortcut to send text messages from a CSV file. The CSV files for testing has 2 rows. Each row has 95 columns. Some columns are blank. I have checked the CSV file and all blank columns have comas.


I use "Get item at index 2 from Split Text" and store it in a variable called "Name". I then use "Get item at index 43 from Split Text" and store it in a variable called "Phone". I use "Quick Look" after each variable is created and the values are exactly what I want.


I then create a text with the "Name" variable as part of the text and the remainder of the text is just a test message.


The first text is sent and is perfect. I send it to my iphone, so that I could see what was sent, and it is exactly what I expected. But then the shortcut fails with an error message above the "Get item at index 43 from Split Text" that states "The index you specified was outside of the possible range (you asked for item 43, and the list has only 18).


I know this is false, because the "Quick Look" showed the phone number correctly and the "Send TEXT to PHONE" worked perfectly for the first row and then failed.


The second row was the same as the first row except for the Name was different. I did it this way to make sure the shortcut was working.


I feel that this is an Apple Shortcut issue that needs some attention, but I do not know how to submit this concern to Apple.




iPhone 16 Pro

Posted on Nov 22, 2025 9:11 AM

Reply
3 replies

Nov 22, 2025 10:32 AM in response to Craig-KS

Craig ~ You could avoid the vagaries of the Split Text action by using an Apple Intelligence shortcut action instead...


The "Use Model” shortcut action in iOS 26 allows you to tap directly into private Apple Intelligence models and provide responses that feed into the rest of your shortcut.


Into that "Use Model” action you would pass a single block of text consisting of two parts:

<your detailed prompt:>

<the CSV text to be processed> (passed as inout into your shortcut or via Get File action.)


õ¿õ¬

Shortcut 'Get item from Split Text' fails

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.