# Problem importing DAML Script from Data Dependency

**URL:** <https://forum.canton.network/t/problem-importing-daml-script-from-data-dependency/1165>\
**Category:** App Development\
**Tags:** daml\
**Created:** [September 8, 2020, 11:55am UTC](https://forum.canton.network/t/problem-importing-daml-script-from-data-dependency/1165 "2020-09-08T11:55:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [September 8, 2020, 11:55am UTC](https://forum.canton.network/t/problem-importing-daml-script-from-data-dependency/1165/1 "2020-09-08T11:55:12Z")

</div>

I’ve got a project with a module `Test.Intro.Asset.Trade` containing a script `tradeSetup`. This is in fact a modified version of the `daml-intro-7` template with scripts instead of scenarios.

Now I’m importing a compiled DAR file from that project into an upgrade project. There I’m importing the aforementioned module using `import qualified Test.Intro.Asset.Trade as TradeTest`.

When trying to use the imported script, I get an error:

```haskell
testUpgrade = do
  (alice, bob, usdbank, eurbank, usdha, usdhb, eurha, eurhb, usdCid, eurCid) <- TradeTest.tradeSetup
  return ()

```

```haskell
File: daml/Test/Intro/Asset/Upgrade/V2.daml
Hidden: no
Range: 18:80-18:100
Source: typecheck
Severity: DsError
Message:
  daml/Test/Intro/Asset/Upgrade/V2.daml:18:81: error:
  Not in scope: ‘TradeTest.tradeSetup’
  Module ‘Test.Intro.Asset.Trade’ does not export ‘tradeSetup’.
ERROR: Creation of DAR file failed.

```

What’s going wrong here? Are scripts not imported with data-dependencies?

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [September 8, 2020, 5:05pm UTC](https://forum.canton.network/t/problem-importing-daml-script-from-data-dependency/1165/2 "2020-09-08T17:05:54Z")

</div>

This is expected at the moment. The DAML Script type changes in each SDK version so if we would expose this, you would now end up with 2 incompatible `Script` types. I’ve opened [Document cross-SDK guarantees for DAML Script · Issue #7341 · digital-asset/daml · GitHub](https://github.com/digital-asset/daml/issues/7341) to document this.
