Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFtransaction error

    I'm getting the following error:
    Nested transactions are not supported.
    A cftransaction tag can not be nested within another cftransaction tag.

    What i'm trying to do:
    I have an array of data that either all has to be ok, or the whole thing is
    rejected.

    <cftransaction action="begin">
    <cftry>
    <cfloop loop over an array>
    Do Work
    If bad element, CFTHROW
    </cfloop>
    <cfcatch>
    cftransaction action="rollback" />
    </cfcatch>
    </cftry>
    <cftransaction action="commit" />
    </cftransaction>

    Jim-sama Guest

  2. Similar Questions and Discussions

    1. cftransaction
      I have a question about CFTRANSACTION. We are currently using CF6.0 with various versions of Oracle and SQL Server. In our server settings we do...
    2. CFTransaction doesn't rollback on error
      Hi all, years ago on CF 4.5, our cftransaction tags used to rollback changed data when something inbetween <cftransaction> and </cftransaction>...
    3. CFTransaction rollbacks
      When I am in a transaction and an an error forces me to issue a rollback, my database effectively locks up. I have the feeling that isolation level...
    4. Error with cftransaction
      I have a method with a cftransaction and inside the cftransaction calls a method that has a cftransaction, before updating to 6.1 I didnt have any...
    5. is this possible - cftransaction
      I don't want to get into the whole 'users shouldn't have access to the db' discussion. It's a battle that's been lost. We are looking at...
  3. #2

    Default Re: CFtransaction error

    what version of CF are you using ?
    prayank Guest

  4. #3

    Default Re: CFtransaction error

    I found my problem. On certain occasions, a certain cf module was being called
    that also had a transaction in it.
    I'm bypassing this by using cfhttp to call a page that calls that module.

    only now, i'm running into a lock situation as both transactions are locking
    the same table.

    Jim-sama Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139