# Problem with loading Carto3 output file with importcarto\_mem()

**URL:** <https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33>\
**Category:** Uncategorized\
**Created:** [27 October 2021 16:27 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33 "2021-10-27T16:27:04Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![kewei](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kewei](https://openep.discourse.group/u/kewei)\
**Post date:** [27 October 2021 16:27 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/1 "2021-10-27T16:27:04Z")

</div>

I encounter a error message while loading an Carto xml file with importcarto\_mem. The message is as follow

 ![image](https://global.discourse-cdn.com/free1/uploads/openepcommunity/original/1X/62cf4cb227580aa0c3c32b4675bf923b2812ce36.png)  
here is the link to the file I use:

> **[VPC 04\_26\_2021 06-22-14.xml](https://drive.google.com/file/d/1v6bDW7HhFxRnZj7jXBZtVaMTEb-Cimjy/view?usp=sharing)**
>
> Google Drive file.

Hope anyone can enlighten me. I would much appreciate it. Thank you~

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [28 October 2021 19:49 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/2 "2021-10-28T19:49:07Z")

</div>

Hi!

Thanks for joining the community. We will take a look at this issue and get back to you!

Best wishes  
Steven

---

<div class="post-metadata">

**Author:** ![sergiolaranjo](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@sergiolaranjo](https://openep.discourse.group/u/sergiolaranjo)\
**Post date:** [5 November 2021 19:20 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/3 "2021-11-05T19:20:54Z")

</div>

Have had the same problem several times now.

Do you know what is happening and the turnaround?

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [7 November 2021 06:51 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/4 "2021-11-07T06:51:43Z")

</div>

Hi Sergio

Sorry, I’ve been on leave this week. We’ve faced this issue a few times and it is normally due to electrode naming for catheters that we haven’t come across before.

Shouldn’t take long to fix!

Steven

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [17 November 2021 15:08 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/5 "2021-11-17T15:08:44Z")

</div>

Hi guys

Sorry for the delay in getting to this. Should be able to take a look this weekend

Steven

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [24 November 2021 07:06 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/6 "2021-11-24T07:06:14Z")

</div>

Hi, I’ve just merged hot fix v1.0.04 into develop/master. Please can you pull (or download) the latest code here [https://github.com/openep/openep-core](https://github.com/openep/openep-core) and see if it is fixed.

If not, we will need to look a bit deeper. @sergiolaranjo or @kewei if you could please try the following:

```auto
dbstop if error
importcarto_mem % navigate to and select your study

```

When the system stops in the debugger please could you find the specific file which has caused the problem. It will _probably_ be for point 1, but not necessarily:

```auto
disp(filename)

```

If you can then send this specific file we will be able to debug this issue further.

---

<div class="post-metadata">

**Author:** ![kewei](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@kewei](https://openep.discourse.group/u/kewei)\
**Post date:** [28 November 2021 12:34 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/7 "2021-11-28T12:34:59Z")

</div>

Thank you very much, I will try.

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [2 December 2021 10:25 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/8 "2021-12-02T10:25:54Z")

</div>

Hi, just wondering how it went and if your problem is solved?

---

<div class="post-metadata">

**Author:** ![nmanna20](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nmanna20](https://openep.discourse.group/u/nmanna20)\
**Post date:** [23 May 2022 16:26 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/9 "2022-05-23T16:26:48Z")

</div>

Hi,  
I have had an error message when trying to import a study file into MATLAB using importcarto\_mem(). I have tried using 3 different xml files within the folder but am experiencing the same error.  
Please could you advise me on where I am going wrong? I have attached screenshots of the files I’ve tried to import and the error messages in the command window.  
Thank you very much for your help,  
Nilanka

 ![Screenshot 2022-05-23 at 17.24.47](https://global.discourse-cdn.com/free1/uploads/openepcommunity/original/1X/ba4a146677cea71c9c1ac6f880dacb925136c8f1.jpeg)  
 ![Screenshot 2022-05-23 at 17.25.07](https://global.discourse-cdn.com/free1/uploads/openepcommunity/original/1X/36ad53fe74700dbc376bc179a86ccee35fd5453a.jpeg)  
 ![Screenshot 2022-05-23 at 17.25.17](https://global.discourse-cdn.com/free1/uploads/openepcommunity/original/1X/928344354385ae50bca4fcdd3afb0846b0e6128e.jpeg)  
 ![Screenshot 2022-05-23 at 17.13.35](https://global.discourse-cdn.com/free1/uploads/openepcommunity/original/1X/e97d9de97df6b8c0490e5aa7fe19dc84cf33fded.jpeg)

---

<div class="post-metadata">

**Author:** ![CaroRoney](https://avatars.discourse-cdn.com/v4/letter/c/59ef9b/32.png) [@CaroRoney](https://openep.discourse.group/u/CaroRoney)\
**Post date:** [30 May 2022 18:56 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/10 "2022-05-30T18:56:37Z")

</div>

Hi Nilanka,

Thanks very much for your question. Let’s look together at the xml file structure to see if anything is different and we can update the code if necessary or figure out what’s going wrong.

Thanks,  
Caroline

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [6 July 2022 14:55 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/11 "2022-07-06T14:55:32Z")

</div>

Did this get fixed?

If you needed to change anything please can you submit a PR to OpenEP-core?

Also, it would be useful to include a test dataset if you are able to send that over for our regression testing.

Thanks  
Steven

---

<div class="post-metadata">

**Author:** ![nmanna20](https://avatars.discourse-cdn.com/v4/letter/n/e19b73/32.png) [@nmanna20](https://openep.discourse.group/u/nmanna20)\
**Post date:** [12 August 2022 16:09 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/12 "2022-08-12T16:09:27Z")

</div>

Thanks for your advice and for following up on this.  
As you identified, the .xml file was not correct and missing the study data - by re-exporting the data, I have been able to successfully use the importcarto\_mem function to load this into a .mat file on Matlab.

I’m trying to analyse low voltage area using bipolar voltage maps. Though these are loading into Matlab, I am still having a couple of error messages. These are attached.

The 1st (‘xyz out of range’) I presume just refers to a single datapoint that is missing or out of range for the map?

The 2nd occurs when I try to use the program to create a reconstruction of the map using the drawMap function - Please could you advise on what I may be missing in this?

Thank you very much!

 ![Screenshot 2022-08-12 at 17.09.07](https://global.discourse-cdn.com/free1/uploads/openepcommunity/original/1X/2789c508e53b4eef3eb21f0a3313fabd511b14a2.png)  
 ![Screenshot 2022-08-12 at 17.08.55](https://global.discourse-cdn.com/free1/uploads/openepcommunity/original/1X/91396124373c30c737c90acf9c097cd818b52a7c.jpeg)

---

<div class="post-metadata">

**Author:** ![jana](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jana](https://openep.discourse.group/u/jana)\
**Post date:** [19 January 2023 11:03 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/13 "2023-01-19T11:03:52Z")

</div>

Hi,  
I have one question about importing data from Carto. It is possible to upload a map created with Octaray. If I try to upload it using the function importcarto\_mem(studyXmlFile), I always get this error:

Output argument “electrogramname\_bip” (and possibly others) not assigned a value in the execution with “getpointelectrogramname” function.

Error in importcarto\_mem (line 413)  
[electrodeNames\_bip{iPoint}, electrodeNames\_uni(iPoint, 1:2), point\_xyz\_2] = getpointelectrogramname(map.xyz(iPoint,:), pointFileName);

I think the problem is in the file getpointelectrogramname.m because it doesn’t consider an octaray that somehow converts to 20 pole A and B arrays.

Thank you for your answer.  
Jana Veselá

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [27 March 2023 08:44 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/14 "2023-03-27T08:44:30Z")

</div>

Hi Jana, welcome to the forum.

Sorry for the delay in replying - I did see your message, but we have also been working at the same time on an update for Octaray.

I’m pleased to say this is now done, in beta, and is available in the develop branch! (thank you to Nick Linton who contributed this).

It would be great if you can have a look and see if it works for your needs?

Best wishes  
Steven

---

<div class="post-metadata">

**Author:** ![jana](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jana](https://openep.discourse.group/u/jana)\
**Post date:** [27 March 2023 09:45 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/15 "2023-03-27T09:45:01Z")

</div>

Hi,  
thank you for your answer. I will look at your code.  
Since I didn’t get any answer for a long time, I started editing the code myself 🙂 Currently, I already modified it to be able to load the maps created by Octaray.  
At least I will compare how it can be done differently.  
Have a nice day.  
Jana

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [27 March 2023 09:58 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/16 "2023-03-27T09:58:52Z")

</div>

Oh no! Sorry about that Jana. The code in the develop branch should now work for you though

---

<div class="post-metadata">

**Author:** ![jana](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jana](https://openep.discourse.group/u/jana)\
**Post date:** [27 March 2023 12:19 UTC](https://openep.discourse.group/t/problem-with-loading-carto3-output-file-with-importcarto-mem/33/17 "2023-03-27T12:19:47Z")

</div>

Thanks, I’ll give it a try 🙂 It’s ok, at least I learned some new things again 🙂
