# Changing Data Path

**URL:** <https://zatca1.discourse.group/t/changing-data-path/4797>\
**Category:** Signing process\
**Created:** [December 26, 2024, 6:18am UTC](https://zatca1.discourse.group/t/changing-data-path/4797 "2024-12-26T06:18:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralfarhan](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/ralfarhan/32/775_2.png) [@ralfarhan](https://zatca1.discourse.group/u/ralfarhan)\
**Post date:** [December 26, 2024, 6:18am UTC](https://zatca1.discourse.group/t/changing-data-path/4797/1 "2024-12-26T06:18:04Z")

</div>

Dear  
Alsalm Alykum  
In .NET, when using the 3.9.9 SDK, the signing process looks for the `schematrons` folder in the desktop path of the user running the application. Can anyone advise how to change the path from `C:\Data\Rules\schematrons\` within the .NET application?

---

<div class="post-metadata">

**Author:** ![Lina-alrehaili1](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@Lina-alrehaili1](https://zatca1.discourse.group/u/Lina-alrehaili1)\
**Post date:** [December 26, 2024, 8:12am UTC](https://zatca1.discourse.group/t/changing-data-path/4797/2 "2024-12-26T08:12:11Z")

</div>

Dear @ralfarhan,

Thanks for reaching out.

Can I kindly ask you to elaborate more by mention the steps that you are following on the signing process?

Thanks,

---

<div class="post-metadata">

**Author:** ![ralfarhan](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/ralfarhan/32/775_2.png) [@ralfarhan](https://zatca1.discourse.group/u/ralfarhan)\
**Post date:** [January 21, 2025, 10:55am UTC](https://zatca1.discourse.group/t/changing-data-path/4797/3 "2025-01-21T10:55:24Z")

</div>

Thank you for your response.

My signing process works fine, but I’ve encountered an issue with the SDK version above 3.3. The signing process requires a `Data` folder to be located in the root directory of the running application (for example, on the C drive if the application is in the default Program Files directory for Windows apps).

My question is: How can I configure the signing process to locate the `\Data\Rules\schematrons` folder (and its contents) in a directory specified by the application, rather than being restricted to the root directory?

If my question is unclear or if you have any additional insights, please let me know. Additionally, could you explain why SDK version 3.3 is able to sign the document without requiring the `\Data\Rules\schematrons` folder?

---

<div class="post-metadata">

**Author:** ![Ammar](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@Ammar](https://zatca1.discourse.group/u/Ammar)\
**Post date:** [January 21, 2025, 11:18am UTC](https://zatca1.discourse.group/t/changing-data-path/4797/5 "2025-01-21T11:18:39Z")

</div>

We are facing the same issue, and I have sent an email that contains all the steps. I have also opened a ticket here in the community.

Please find the link for the ticket.

> [@Issue with SDK 3.3.8/3.3.9 - DirectoryNotFoundException during B2C Invoice Signing](https://zatca1.discourse.group/t/issue-with-sdk-3-3-8-3-3-9-directorynotfoundexception-during-b2c-invoice-signing/4659):
>
> We are facing an issue with dotnet core SDK versions 3.3.8 and 3.3.9 when attempting to sign invoices. We are encountering the following exception: Inner Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Data\Rules\schematrons\20210819\_ZATCA\_E-invoice\_Validation\_Rules.xsl'. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.Safe…

Thank you for support.

---

<div class="post-metadata">

**Author:** ![ahmednfwela](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/ahmednfwela/32/646_2.png) [@ahmednfwela](https://zatca1.discourse.group/u/ahmednfwela)\
**Post date:** [January 21, 2025, 11:18am UTC](https://zatca1.discourse.group/t/changing-data-path/4797/6 "2025-01-21T11:18:42Z")

</div>

duplicate of [Issue with SDK 3.3.8/3.3.9 - DirectoryNotFoundException during B2C Invoice Signing](https://zatca1.discourse.group/t/issue-with-sdk-3-3-8-3-3-9-directorynotfoundexception-during-b2c-invoice-signing/4659)
